﻿/*
 * Created by SharpDevelop.
 * User: Andrew Sadler
 * Date: 07/09/2012
 * Time: 20:31
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Drawing;

namespace RRRSRoguelike.Entities.Props
{
	
	//HACK: this could be ruleset specific
	
	/// <summary>
	/// Description of Trap.
	/// Inherits <c>Tile</c>
	/// </summary>
	public class Trap : Prop
	{
		/// <summary>
		/// constructor
		/// </summary>
		/// <param name="position"></param>
		public Trap(Point position)
			: base("!", ConsoleColor.Green, position)
		{
			IsSet = false;
		}

		/// <summary>
		/// whether or not the trap is set
		/// </summary>
		public bool IsSet { get; private set; }

		/// <summary>
		/// Load/set the trap
		/// </summary>
		public void Set()
		{
			IsSet = true;
			Color = ConsoleColor.Red;
		}

		/// <summary>
		/// disarm the trap
		/// </summary>
		public void Disarm()
		{
			IsSet = false;
			Color = ConsoleColor.Green;
		}
	}
}
